package com.marcnuri.MAndFileBrowser;

import mydebug.MyDebug;


import java.io.File;


public class FileListAdapterEntry extends Object{
	public Integer iconResource;
	public File file;
	public boolean selected;
	public FileListAdapterEntry(File file, boolean selected, Integer iconResource){
 this.file = file;
 this.selected = selected;
 this.iconResource = iconResource;
 }

	
	@Override
	public int hashCode() {
MyDebug.beginMethod("hashCode:int FileListAdapterEntry");
 final int prime = 31;
 int result = 1;
 result = prime * result + ((file == null) ? 0 : file.hashCode());
 {
int giatritrave = result;
 MyDebug.endMethod();
return giatritrave;
}
 }

	@Override
	public boolean equals(Object obj) {
MyDebug.beginMethod("equals:boolean FileListAdapterEntry");
 if (this == obj) {
boolean giatritrave = true;
 MyDebug.endMethod();
return giatritrave;
}
 if (obj == null) {
boolean giatritrave = false;
 MyDebug.endMethod();
return giatritrave;
}
 if (getClass() != obj.getClass()) {
boolean giatritrave = false;
 MyDebug.endMethod();
return giatritrave;
}
 FileListAdapterEntry other = (FileListAdapterEntry) obj;
 if (file == null) {
 if (other.file != null) {
boolean giatritrave = false;
 MyDebug.endMethod();
return giatritrave;
}
 }
 else if (!file.equals(other.file)) {
boolean giatritrave = false;
 MyDebug.endMethod();
return giatritrave;
}
 {
boolean giatritrave = true;
 MyDebug.endMethod();
return giatritrave;
}
 }

	
}
